#include <bits/stdc++.h>

using namespace std;

void inline solve();

signed main(){
    ios::sync_with_stdio(false);
    cin.tie(0),cout.tie(0);

    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);

    int t=1;//cin >> t;
    while(t--) solve();
    return 0;
}

const int N=1e5+10;
int n,a[N],cnt[N],ans;
void inline solve(){
    cin >> n;
    for(int i=1;i<=n;i++){
        cin >> a[i];
        cnt[a[i]]++;
    }
    for(int i=1;i<=100000;i++){
        if(ans<=cnt[i]) ans=0;
        else ans-=cnt[i];
        ans+=cnt[i];
    }
    cout << ans << endl;
}